﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

using CSF.Products.Data;
using CSF.Products.Service;

namespace CSF.Service.WebShop.Client
{
    public class ColorSvcClient : ClientBase<IColorSvc>, IColorSvc
    {
        public int SetDisable(IEnumerable<int> ids, bool isDisable, string modifyBy)
        {
            return base.Channel.SetDisable(ids, isDisable, modifyBy);
        }

        public Color GetOneById(int id)
        {
            return base.Channel.GetOneById(id);
        }

        public bool UpdateById(Color t, int id)
        {
            return base.Channel.UpdateById(t, id);
        }

        public bool DeleteOneById(int id)
        {
            return base.Channel.DeleteOneById(id);
        }

        public int DeleteById(IEnumerable<int> ids)
        {
            return base.Channel.DeleteById(ids);
        }

        public int Insert(Color entity)
        {
            return base.Channel.Insert(entity);
        }

        public Color GetOneByCode(string code)
        {
            return base.Channel.GetOneByCode(code);
        }

        public List<Color> GetEnable()
        {
            return base.Channel.GetEnable();
        }

        public List<Color> GetDisable()
        {
            return base.Channel.GetDisable();
        }

        public List<Color> GetStartsWith(string keyword, bool isDisable)
        {
            return base.Channel.GetStartsWith(keyword, isDisable);
        }

        public bool Enable(Color t)
        {
            return base.Channel.Enable(t);
        }

        public bool Disable(Color t)
        {
            return base.Channel.Disable(t);
        }

        public List<Color> GetAll()
        {
            return base.Channel.GetAll();
        }
    }
}
